<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/09/04
  Time: 17:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>


    <script type="text/javascript" src="js/jquery-3.6.0.js"></script>
    <script type="text/javascript">
        $(function () {
            console.log("111111111fsf")
        })

        function test() {
            $.ajax({
                type: "get",
                url: "json/queryUser",
                data: {},
                success: function (res) {
                    console.log(res);
                }
            });
        }
        function test2() {
            $.ajax({
                type: "post",
                url: "json/queryUser02",
                // dataType: "application/json; charset=utf-8",
                contentType: "application/json",
                charset: "utf-8",
                data: '{"userName": "admin", "userPwd":"123456"}',
                success: function (res) {
                    console.log(res)
                }
            });
        }
    </script>
</head>
<body>


<h2>Hello World</h2>
<button type="submit" onclick="test()">test1</button>
<button type="submit" onclick="test2()">test2</button>
</body>
</html>
